import axios from "@/utils/request";
// 获取联想建议列表
export const getSuggestListApi = (keyword) => {
  return axios({
    method: "GET",
    url: "/v1_0/suggestion",
    params: {
      q: keyword,
    },
  });
};

//获取搜索_结果列表
export const getSearchResultListApi = (keyword, page, par_page) => {
  return axios({
    method: "GET",
    url: "/v1_0/search",
    params: {
      q: keyword,
      page,
      par_page,
    },
  });
};
